package com.project.bean;

import java.time.LocalDate;
@SuppressWarnings("all")
/**
 * 用户实体类
 */
public class UserBean {
    /**编号*/
    private int id;
    /**用户名*/
    private String username;
    /**密码*/
    private String pwd;
    /**昵称*/
    private String nickname;
    /**头像地址*/
    private String imgPath;
    /**邮箱地址*/
    private String email;
    /**注册时间*/
    private LocalDate date = LocalDate.now();

    public UserBean() {
    }

    public UserBean(String username, String pwd, String nickname, String imgPath, String email) {
        this.username = username;
        this.pwd = pwd;
        this.nickname = nickname;
        this.imgPath = imgPath;
        this.email = email;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", pwd='" + pwd + '\'' +
                ", nickname='" + nickname + '\'' +
                ", imgPath='" + imgPath + '\'' +
                ", email='" + email + '\'' +
                ", date=" + date +
                '}';
    }
}
